package cn.uce.common.constants;

/**
 * 常量类。<br>
 * date: 2016年10月19日 上午11:30:30 <br/>
 *
 * @author shichengqun
 */
public final class Constants {

    public static final long    FU_ER                  = -2;

    /**
     * 匿名用户ID。
     */
    public static final long    ANONYMOUS_ID                  = -1;
    
    /**
     * super ID。
     */
    public static final long    SUPER_ID                      = 1L;
    
    /**
     * super role ID。
     */
    public static final long    SUPER_ROLE_ID                      = 1054552046249782277L;
    
    /**
     * 默认租户ID。
     */
    public static final int     DEFAULT_TENANT_ID             = 1;
    
    /**
     * dubbo传当前用户ID的key。
     */
    public static final String  CURR_USER_ID_CODE             = "DUBBO_CURR_USER_ID";
    
    /**
     * dubbo传当前请求的本地化代码。
     */
    public static final String  CURR_LOCALE_CODE              = "DUBBO_CURR_LOCALE_CODE";
    
    /**
     * 系统默认错误提示信息code。
     */
    public static final String  ERROR_MSG_CODE_DEFAULT        = "com.hginfo.error.message";
    
    /**
     * dubbo调用默认错误提示信息code。
     */
    public static final String  ERROR_MSG_CODE_DUBBO          = "com.hginfo.dubbo.error.message";
    
    /**
     * 500错误页面/统一异常页面。
     */
    public static final String  ERROR_PAGE_500                = "error/500";
    
    /**
     * 选择行数据模式--多选。
     */
    public static final String  SELECT_MODE_MULTIPLE          = "multiple";
    /**
     * 选择行数据模式--单选。
     */
    public static final String  SELECT_MODE_SINGLE            = "SINGLE";
    
    /**
     * 系统日志KEY存储最大长度。
     */
    public static final int     SYS_LOG_KEY_MAXLENGTH         = 64;
    
    /***
     * 邮件验证码超时时间300秒.
     */
    public static final int     FIND_PASSWORD_VCODE_TIMEOUT   = 300;
    
    /***
     * 找回密码申请,请求时间间隔。
     */
    public static final Integer FIND_PASSWORD_RETRY_TIME         = 24 * 60 * 60;
    /***
     * 找回密码申请某段时间内的最大次数。
     */
    public static final Integer FIND_PASSWORD_TIME_MAXCOUNT    = 3;
    
    /**
     * 验证码开关名称。
     */
    public static final String  SYS_CONFIG_LOGIN_VERIF_CODE   = "sysLoginVerifCode";
    
    /**
     * 单用户在线开关名称。
     */
    public static final String SYS_CONFIG_USER_SINGLE_ONLINE = "userSingleOnline";
    
    /**
     * CSRF防御开关名称。
     */
    public static final String  SYS_CONFIG_DEFENSE_CSRF       = "sysDefenseCsrf";
    
    /**
     * 系统日志过期时间。
     */
    public static final String  SYS_CONFIG_SYSLOG_TIMEOUT     = "sysLogTimeout";
    
    /**
     * 系统配置中默认个性化配置类型。
     */
    public static final String  PROFILE            = "profile";
    
    /**
     * 
     */
    public static final String INITIAL_REQUEST_URI = "initialRequestURI";
    /**
     * 系统安全等级。
     */
    public static final String SYS_SECURITY_LEVEL = "sysSecurityLevel";
    
    /**
     * 0.
     */
    public static final Integer ZERO                  = 0;
    
    /**
     * 1.
     */
    public static final Integer ONE                   = 1;
    
    /**
     * 2.
     */
    public static final Integer TWO                   = 2;
    
    /**
     * 3.
     */
    public static final Integer THREE                 = 3;
    
    /**
     * 4.
     */
    public static final Integer FOUR                  = 4;
    
    /**
     * 5.
     */
    public static final Integer FIVE                  = 5;
    
    /**
     * 6.
     */
    public static final Integer SIX                   = 6;
    
    /**
     * 7.
     */
    public static final Integer SEVEN                 = 7;
    
    /**
     * 8.
     */
    public static final Integer EIGHT                 = 8;
    
    /**
     * 9.
     */
    public static final Integer NINE                  = 9;
    
    /**
     * 10.
     */
    public static final Integer TEN                   = 10;

    /**
     * 100.
     */
    public static final Integer NUMBER_100                   = 100;

    /**
     * 1000.
     */
    public static final Integer NUMBER_1000                   = 1000;
    
    /**
     * 每小时秒数.
     */
    public static final Integer SECONDS_PER_HOUR      = 3600;
    
    /**
     * 每分钟秒数。
     */
    public static final Integer SENCONDS_PER_MINUTE   = 60;
    
    /**
     * mysql text 最大长度。
     */
    public static final Integer MYSQL_TEXT_MAX_LENGTH = 65535;
    
    /**
     * 导入数据类型  职务 ：1
     */
    public static final Integer IMPORT_TYPE_JOB = 1;
    /**
     * 导入数据类型  部门 ：2
     */
    public static final Integer IMPORT_TYPE_DEPT = 2;
    /**
     * 导入数据类型  岗位 ：3
     */
    public static final Integer IMPORT_TYPE_POST = 3;
    /**
     * 导入数据类型  小组 ：4
     */
    public static final Integer IMPORT_TYPE_GROUP = 4;
    /**
     * 导入数据类型  角色 ：5
     */
    public static final Integer IMPORT_TYPE_ROLE = 5;
    /**
     * 导入数据类型  用户 ：6
     */
    public static final Integer IMPORT_TYPE_USER = 6;
    /**
     * 导入数据类型  角色权限 ：7
     */
    public static final Integer IMPORT_TYPE_ROLE_AUTH = 7;
    /**
     * 导入数据类型  用户角色：8
     */
    public static final Integer IMPORT_TYPE_USER_ROLE = 8;
    /**
     * 导入数据类型  用户权限：9
     */
    public static final Integer IMPORT_TYPE_USER_AUTH = 9;
    /**
     * 导入数据类型  用户岗位 ：10
     */
    public static final Integer IMPORT_TYPE_USER_POST = 10;
    /**
     * 导入数据类型  用户小组 ：11
     */
    public static final Integer IMPORT_TYPE_USER_GROUP = 11;
    /**
     * 导入数据验证正常
     */
    public static final Integer CHECK_RESULT_TAG_SUCCESS=1;
    /**
     * 导入数据验证失败
     */
    public static final Integer CHECK_RESULT_TAG_ERROR=0;
    
    
   /* private static ResourceBundle res = ResourceBundle.getBundle("pushInfo");
    *//**
     * webservice地址
     *//*
    public static final String WEBSERVER_IP = res.getString("WEBSERVER_IP");//"10.9.45.35";// "esbbase.sh.cmcc";//"10.9.45.35";
    *//**
     * webservice端口
     *//*
    public static final String WEBSERVER_PORT = res.getString("WEBSERVER_PORT");//"9080";
    *//**
     * webservice账号
     *//*
    public static final String WEBSERVER_SIGN = res.getString("WEBSERVER_SIGN");
    *//**
     * webservice密码
     *//*
    public static final String WEBSERVICE_PASSWORD = res.getString("WEBSERVICE_PASSWORD");*/
    /**
     * 领导职务
     */
    public static final Long SYNCCHRO_JOB_LEADER =1L;
    /**
     * 员工职务
     */
    public static final Long SYNCCHRO_JOB_STAFF =2L;
    
//    public static final String LONG_PASSWORD ="111111";
    
    public static final String SUCCESS = "success";
    public static final String UTF8 = "utf-8";
    public static final String ORG_TYPE = "orgType";
    public static final String ROLE_CODE = "roleCode";
    public static final String ROLE_TYPE = "roleType";
    public static final String PERMISSION_CODE = "permissionCode";
    public static final String WO_PB_TO_CLAIM = "wo_pb_to_claim";
    public static final String BASE_ORG_CODE = "baseOrgCode";
    public static final String WOCODE="woCode";
    public static final String WOKIND="woKind";
    public static final String STARTER="starter";
    public static final String HANDLEEXPLAIN="handleExplain";
    public static final String NO_USER="当前用户不存在";
    public static final String MAIL_NO="mailNo";
    public static final String WORK_ORDER_ID="workOrderId";
    public static final String IMPORT_BYHQ="importByHQ";
    public static final String POSTAL_TASK_START="postaltaskStart";
    public static final String IS_COMPLETION="isCompletion";
    public static final String POSTAL_COMPLETION="postalComplaintsCode";
    public static final String WAYBILLNUM="waybillNum";
    public static final String WEBSITECODE="websiteCode";
    public static final String COMPLAINANT_TEL="complainantTel";
    public static final String DUTY_BRANCH_NAME="dutyBranchName2";
    public static final String POSTAL_SERVICE_PROCESS="postalServiceProcess";

    public static final String CS_WO_CUST_SER_CACHE="CsWoCustSerCache";
    public static final String CS_WO_PROBLEM_CACHE="CsWoProblemCache";
    public static final String CS_WO_POSTAL_COMPLAINTS_CACHE="CsWoPostalComplaintsCache";
    public static final String CS_WO_ARBITRATION_COMPLAINTS_CACHE="CsWoArbitrationComplaintsCache";
    public static final String CS_WO_ARBITRATION_APPEAL_CACHE="CsWoArbitrationAppealCache";
    public static final String CS_WO_ORETAILERS_APPEAL_CACHE="CsWoOretailersAppealCache";
    public static final String CS_WO_ORETAILERS_ORDER_CACHE="CsWoOretailersOrderCache";
    public static final String CS_WO_CUSTOMER_SETTLEMENT_CACHE="CsWoCustomerSettlementCache";
    public static final String CS_WO_ACOINSURRANCE_CACHE="CsWoAcoInsurranceCache";
    public static final String FIVE_ZERO_ONE="000001";
    public static final String SIX_ZERO_ONE="0000001";
    public static final String FOR_ZERO_ONE="00001";
    public static final String BILL_CODE="billCode";
    public static final String BILL_DELETE_SIGN_LIST="deleteSignList";
    public static final String MESSAGE="Message";
    /**
     * CRM客户系统合作伙伴编码
     */
    public static final String CRM_PARTNER_ID = "80327516";
    
    /**
     * 构造函数。
     */
    private Constants() {
        
    }
}
